home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
listings
/
v_01_02
/
clune.exe
/
MOUS_SYS.C
< prev
next >
Wrap
Text File
|
1989-08-24
|
937b
|
30 lines
/* mous_sys.c is a function to support the Microsoft mouse for people */
/* who have mouse.sys but not mouse.lib. Its use assumes that mouse.sys */
/* has been installed at boot-up. Written 8/89 by T Clune. Written for */
/* and Copyright (c) 1989 by Eye Research Institute, Boston MA. All rights */
/* reserved. NOTE WELL: Does not support mouse calls that return values */
/* in registers SI and DI, but mouselib.c makes no such call. */
#include <dos.h>
/* cmousel() is the mouse software interrupt call. It's name and type */
/* are used to make them identical to the mouse.lib call. */
int cmousel(a, b, c, d)
int *a, *b, *c, *d;
{
union REGS regs;
regs.x.ax= *a;
regs.x.bx= *b;
regs.x.cx= *c;
regs.x.dx= *d;
int86(0x33, ®s, ®s);
*a= regs.x.ax;
*b= regs.x.bx;
*c= regs.x.cx;
*d= regs.x.dx;
return 0; /* well, it IS int, after all. */
}